home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 43
/
Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso
/
-serious-
/
comms
/
other
/
ftp4all
/
src
/
amigapatch
/
amiga-gg-patch.diff
< prev
Wrap
Text File
|
1999-06-14
|
4KB
|
122 lines
Only in ./: amiga-GG-patch.diff
diff -r -u ../ftpd-2.26a/src/common.c ./src/common.c
--- ../ftpd-2.26a/src/common.c Mon Jun 07 00:04:16 1999
+++ ./src/common.c Sun Jun 06 14:23:12 1999
@@ -43,7 +43,7 @@
#endif
#include "externs.h"
#include "glob_proc.h"
-
+#include <ix.h> /*Amiga Only Patch*/
extern signal_handler(int sig);
void strip_crlf(char* buffer)
@@ -710,7 +710,7 @@
putenv(envbuffer[4]);
sprintf(envbuffer[5],"F4A_GROUP=%s",get_groupname(usr.gid));
putenv(envbuffer[5]);
- pid = fork();
+ pid = ix_vfork(); /*Amiga Only Patch*/
if (pid == -1) return -1;
if (pid)
{ close(stdinpipe[1]);
@@ -781,7 +781,7 @@
putenv(envbuffer[3]);
sprintf(envbuffer[4],"F4A_COLOR=%s",coloruser() ? "c" : "-");
putenv(envbuffer[4]);
- pid = fork();
+ pid = ix_vfork(); /*Amiga Only Patch*/
if (pid == -1) return -1;
if (pid)
{ close(stdinpipe[1]);
diff -r -u ../ftpd-2.26a/src/configd.c ./src/configd.c
--- ../ftpd-2.26a/src/configd.c Mon Jun 07 00:04:40 1999
+++ ./src/configd.c Sun Jun 06 14:24:08 1999
@@ -34,7 +34,7 @@
#include "des.h"
#endif
#include "externsd.h"
-
+#include <ix.h> /*Amiga Only Patch*/
int parse_command(char* p, char** param, int max, int* n);
void* alloc(void* buf, long size)
@@ -1206,7 +1206,7 @@
}
if (log_program)
{ pipe(pipefd);
- log_pid = fork();
+ log_pid = ix_vfork(); /*Amiga Only Patch*/
switch (log_pid)
{ case 0 :
close(pipefd[1]);
diff -r -u ../ftpd-2.26a/src/ftpd.c ./src/ftpd.c
--- ../ftpd-2.26a/src/ftpd.c Mon Jun 07 00:05:28 1999
+++ ./src/ftpd.c Sun Jun 06 14:25:26 1999
@@ -45,7 +45,7 @@
#endif
#include "globalsd.h"
#include "glob_procd.h"
-
+#include <ix.h> /*Amiga Only Patch*/
int write_user_file(const char* filename, FILE* file);
int write_group_file(const char* filename);
void child_logout(struct child_s* c, int exitcode);
@@ -215,7 +215,7 @@
if (logf) fflush(logf);
fflush(errlogf);
- pid = fork();
+ pid = ix_vfork(); /*Amiga Only Patch*/
switch (pid)
{ case -1 :
perror("ftpd: fork");
@@ -370,7 +370,7 @@
{ printf("ftpd: unable to bind socket to a port\n");
return errno;
}
- pid = fork();
+ pid = ix_vfork();/*Amiga Only Patch*/
if (pid == -1)
{ perror("ftpd: fork");
return errno;
@@ -507,7 +507,7 @@
if (cs != -1)
{ if (logf) fflush(logf);
fflush(errlogf);
- pid = fork();
+ pid = ix_vfork(); /*Amiga Only Patch */
switch (pid)
{ case -1 :
perror("ftpd: fork");
diff -r -u ../ftpd-2.26a/src/site.c ./src/site.c
--- ../ftpd-2.26a/src/site.c Mon Jun 07 00:06:56 1999
+++ ./src/site.c Sun Jun 06 14:26:44 1999
@@ -34,7 +34,7 @@
#include "tweak.h"
#include "externs.h"
#include "glob_proc.h"
-
+#include <ix.h> /*Amiga Only Patch*/
struct file_s* find_name(struct file_s*,char*,int,int*);
struct dirent* findfirst(DIR**,char*,char*);
struct dirent* findnext(DIR*,char*);
@@ -721,7 +721,7 @@
err = pipe(stdinpipe);
if (!err) err = pipe(stdoutpipe);
if (err) return send_error(550,"pipe",0);
- pid = fork();
+ pid = ix_vfork(); /*Amiga Only Patch*/
if (pid == -1) return send_error(550,"fork",0);
if (pid)
{ close(stdinpipe[1]);
@@ -1071,7 +1071,7 @@
putenv(envbuffer[3]);
sprintf(envbuffer[4],"F4A_COLOR=%s",coloruser() ? "c" : "-");
putenv(envbuffer[4]);
- pid = fork();
+ pid = ix_vfork(); /*Amiga Only Patch*/
if (pid == -1) return send_error(550,"fork",0);
if (pid)
{ close(stdinpipe[1]);